/**
 * Created by McheNike on 2016/6/5.
 */
var locationApp = angular.module('locationApp', []);

locationApp.config(function ($locationProvider) {
    $locationProvider.html5Mode(true).hashPrefix('!')
});


locationApp.controller("loController", function ($scope, $location) {
    console.log($location.path())//   /view
    console.log($location.url())//  /view?name=huaua
    console.log($location.absUrl())
    $location.path('/login').search({name: "huahuadavids"});
})

